package src.model.repository;

import java.util.List;

import src.model.bll.DirectorsBLL;
import src.model.entity.Directors;

public class DirectorsRES {

	private final DirectorsBLL directorsBLL;
	
	public DirectorsRES() {
		this.directorsBLL = new DirectorsBLL();
	}
	
	public boolean insert(Directors entity) {
		return directorsBLL.insertEntity(entity);
	}

	public boolean update(Directors entity) {
		return directorsBLL.updateEntity(entity);
	}

	public boolean delete(Directors entity) {
		return directorsBLL.deleteEntity(entity);
	}

	public List<Directors> getAll() {
		return directorsBLL.getAllEntity();
	}

	public Directors findById(long id) {
		return directorsBLL.findEntityById(id);
	}
}
